package com.ruoyi.common.enums;

import lombok.Getter;

@Getter
public enum OrderTypeEnum {
    receive("receive", "代收"),
    pay("pay", "代付");


    private String value;
    private String text;

    OrderTypeEnum(String value, String text) {
        this.value = value;

        this.text = text;
    }

    public static String toMsg(String value) {
        for (OrderTypeEnum wot : OrderTypeEnum.values()) {
            if (wot.getValue().equals(value)) {
                return wot.getText();
            }
        }
        return "";
    }


}
